<%@ page import="com.oval.util.JspHelper" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="com.oval.util.ConstantProp" %>
<%@ page import= "org.apache.log4j.*"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/chinese/csscontent.css" type="text/css">

</head>
<body bgcolor="#FFFFFF" text="#000000" >

<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#999999" >
<tr height="30"  align="center"> 
      <td class="td_title_bg" ></td>
      <td class="td_title_bg" width="40%"><b>Schedule Name</b></td>
      <td class="td_title_bg" ><b>Schedule Interval</b></td>
      <td class="td_title_bg" ><b>Schedule Start Time</b></td>
</tr>
<form name="cform" method="post" action="../../Dispatcher">   
  <custom:hidden property="pagename" value="setschedule"/>
  <custom:hidden property="actionname"/>


<logic:iterate id="scheduleinfo" collection="<%= ConstantProp.scheduledesc %>" >
<tr class="td_bg_row" height="25">
  <%
    HashMap a_schedule = (HashMap)pageContext.getAttribute("scheduleinfo");
    Boolean isChecked = (Boolean)a_schedule.get("flag");
    String checked = isChecked.booleanValue()
                     ? "checked"
                     : "" ;
  %>
  <td class="td_center">
    <input class="normalradio" type="checkbox" <%=JspHelper.filterNull( checked)%> name="flag" value="<custom:write name ="scheduleinfo" property="name"/>" >
  </td>
  <td class="td_left">&nbsp;
    <custom:write name ="scheduleinfo" property="name"/>
    <custom:hidden name ="scheduleinfo" property="name"/>
  </td>
  <td class="td_center">&nbsp;
    <custom:write name ="scheduleinfo" property="interval"/>
    <custom:hidden name ="scheduleinfo" property="interval"/>
  </td>
  <td class="td_center">&nbsp;
    <input type="text" name="newstartdate" size="5" value="<custom:write name ="scheduleinfo" property="startdate"/>">
    <custom:hidden name ="scheduleinfo" property="startdate"/>
  </td>
</tr>    
</logic:iterate>
</form>
<tr>
 <table width="100%" border="0" align="center">
      <tr></tr>
      <tr></tr>
      <tr></tr>
      <tr></tr>
      <tr></tr>
      <tr></tr>
      <tr>
        <td>
          <div align="center">
            <input type="button" class="button1" value="Set Schedule" style="width:100" onClick="done()">
          </div>
        </td>
      </tr>
    </table>
</tr>    
</table>
</body>
<script language="JavaScript">
function done()
{
  cform.actionname.value = "setschedule";
  cform.target = "_self";
  cform.submit();
}

</script>
</html>

